<?php

function smarty_modifier_truncate_d($string, $length = 10, $etc = '...')
{
  if(mb_strlen($string,"utf8")>$length)
  {
  	return mb_substr($string, 0,$length,"utf8").$etc;
  }else{
  	return mb_substr($string, 0,$length,"utf8");
  } 
}

/* vim: set expandtab: */

?>
